package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	DeliverTypeEventNew           = "erp.DeliverTypeNew"
	DeliverTypeEventBeforeCreate  = "erp.DeliverTypeBeforeCreate"
	DeliverTypeEventBeforeUpdate  = "erp.DeliverTypeBeforeUpdate"
	DeliverTypeEventBeforeSave    = "erp.DeliverTypeBeforeCreate erp.DeliverTypeBeforeUpdate"
	DeliverTypeEventAfterCreate   = "erp.DeliverTypeAfterCreate"
	DeliverTypeEventAfterUpdate   = "erp.DeliverTypeAfterUpdate"
	DeliverTypeEventAfterSave     = "erp.DeliverTypeAfterCreate erp.DeliverTypeAfterUpdate"
	DeliverTypeEventDelete        = "erp.DeliverTypeDelete"
	DeliverTypeAccessControlEvent = "erp.DeliverTypeAccessControl"
)

func GetDeliverTypeConfig() *mgo.DocConfig {
	return DeliverType_Config
}

var DeliverType_Config *mgo.DocConfig

func init() {
	DeliverType_Config = NewDeliverTypeConfig()
}
func NewDeliverTypeConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "erp.DeliverType",
		Fields: []string{
			"name",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
